<h3>
  Welcome to Sideffect!
</h3>
<table width="100%">
  <tr>
    <td width="50%" align="center">
      <h3>
      Top <strong>20</strong> Sideffects from <i><%=@total_ratings%></i> Ratings
      </h3>
    </td>
    <td width="50%" align="center">
      <h3>
      Top <strong>20</strong> Drugs from <i><%=@total_drugs%></i> Drugs
      </h3>
    </td>
  </tr>
  <tr>
    <td align="center">
<div id="tabledescription1"></div>

<div id="coolmenu1">
<% @top_sideffects.each do |sf| %>
  <a  onMouseover="showtext('Count: <strong><%=sf["cnt"]%></strong>','tabledescription1')" onMouseout="hidetext('tabledescription1')"><%= h(sf["name"])%></a>
<% end %>
</div>

    </td>
    <td align="center">
	<div id="tabledescription2"></div>
	<div id="coolmenu2">
        <% @top_drugs.each do |d| %>
       
          <%= link_to(h(d["name"]), {:action => "show_drug", :id => d["id"]}, {:onMouseover => "showtext('Count: <strong>#{d["cnt"]}</strong>','tabledescription2')", :onMouseout => "hidetext('tabledescription2')"})%>
        <% end %>	  
	</div>
    </td>
  </tr>
</table>

